
import store from "@/store";
export default {
    state: {
        sidebar: {
            opened: true,
        },
    },
    getters: {
        GetSidebar: function (state) {
            return state.sidebar.opened
        }
    },

    mutations: {
        //菜单 - 缩进
        SET_SIDEBAR_TYPE: (state, type) => {
            console.log(type)
            state.sidebar.opened = type
        },
    },
    actions: {
        setSidebar: ({ commit }, type) => {
            commit('SET_SIDEBAR_TYPE', type)
        },
    }
}
